package com.example.printer2;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

import com.example.printer2.po.My_List;
import com.example.printer2.po.Printer;
import com.example.printer2.request.UserInfoRequest;
import com.jaeger.library.StatusBarUtil;

import org.w3c.dom.Text;

import java.util.List;

@SuppressLint("HandlerLeak")
public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        StatusBarUtil.setColor(this,getResources().getColor(R.color.yellow),0);
        TextView nickName=findViewById(R.id.nick_name);
        TextView E_mail=findViewById(R.id.E_mail);
        nickName.setText(My_List.name);
        E_mail.setText(My_List.eMail);
    }

    public void toPrinter(View view)
    {
        Intent intent=new Intent(this, PrinterActivity.class);
        startActivity(intent);
        this.overridePendingTransition(0, 0);
    }

    public void toRecord(View view)
    {
        Intent intent=new Intent(this,RecordActivity.class);
        startActivity(intent);
        this.overridePendingTransition(0, 0);
    }

}